package com.eugene.ui.editors;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
import org.eclipse.ui.IWorkbenchPart;

import com.eugene.entity.CommonEntity;

public class IrCurveEditorInput implements IEditorInput {
//	private final int id;
	private List<CommonEntity> intRateHis = new ArrayList<CommonEntity>();
	
//	public IrCurveEditorInput(int id) {
////		this.id = id;
//	}
	
	public IrCurveEditorInput(){
		
	}
	public IrCurveEditorInput(List<CommonEntity> input){
		this.intRateHis = input;
	}
	
	public List<CommonEntity> getIntRateHis(){
		return intRateHis; 
	}

	@Override
	public boolean exists() {
		return false;
	}

	@Override
	public ImageDescriptor getImageDescriptor() {
//		Image image = IWorkbenchPart.getImage();
//		ImageDescriptor desc = IEditorInput.getImageDescriptor();
		return null;
	}

	@Override
	public String getName() {
//		return String.valueOf(id);
//		return intRateHis.get(0).getEtyId();
		return "MarketVariableHistory";
	}
	
	@Override
	public IPersistableElement getPersistable() {
		return null;
	}

	@Override
	public String getToolTipText() {
		String toolTip ="Show IrCurve History";
		return toolTip;
	}

	@Override
	public Object getAdapter(Class adapter) {
		return null;
	}


}
